package br.financeiro;

import br.financeiro.R;
import android.R.anim;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;

public class MainActivity extends Activity {

	private OnClickListener listenerPerson = new OnClickListener() {

		@Override
		public void onClick( View view ) {
			Intent intent = new Intent( MainActivity.this, SearchPerson.class );
			startActivity( intent );
			overridePendingTransition( anim.slide_in_left, anim.fade_out );
		}
	};

	@Override
	protected void onCreate( Bundle savedInstanceState ) {
		super.onCreate( savedInstanceState );
		setContentView( R.layout.activity_main );
		ImageView imageViewPerson = (ImageView) findViewById( R.id.btn_person );
		imageViewPerson.setOnClickListener( listenerPerson );
	}
}
